package com.szcinda.fitness.security;

import org.springframework.data.domain.AuditorAware;
import org.springframework.stereotype.Component;

@Component("auditorProvider")
public class AuditorAwareImpl implements AuditorAware<String> {


    @Override
    public String getCurrentAuditor() {
        return SecurityUtils.getCurrentUser().getUsername();
    }
}
